<template>
  <scroll ref="scroll">
    <div class="seller">
      <div class="address">
        <div>
          <h3>{{ this.restInfo.name }}</h3>
          <p style="overflow: hidden">{{ this.restInfo.address }}</p>
        </div>
        <div>
          <h3>商家信息</h3>
          <p>{{ this.restInfo.category }}</p>
          <br />
          <p v-if="this.restInfo.opening_hours">
            {{ this.restInfo.opening_hours[0] }}
          </p>
        </div>
        <div class="call"><img src="~assets/img/电话.png" alt="" /></div>
        <div class="qualifications">查看营业资质</div>
      </div>
      <div class="service">
        <h3>商家服务</h3>
        <p>电话:{{ this.restInfo.phone }}</p>
      </div>
      <div class="report">举报商家</div>
    </div>
  </scroll>
</template>

<script>
import Scroll from "components/scroll/Scroll";
export default {
  name: "seller",
  data() {
    return {
      saveY: 0,
    };
  },
  components: {
    Scroll,
  },
  props: {
    restInfo: {
      type: Object,
    },
  },
  

};
</script>

<style scoped>
/* 消除滚动条 */

.seller {
  background-color: rgb(245, 245, 245);
  /* width: 100%;
  padding-bottom: 60px;
  margin-top: 10px;
  background-color: brown;
  overflow-y: scroll;

  position: absolute;
  bottom: 0;
  top: 275px;
  left: 0;
  height: fit-content;
  overflow: hidden; */
  /* overflow: hidden; */

  position: absolute;
  /* padding-bottom: 60px; */
  /* margin-top: 10px; */
  top: 275px;
  bottom: 49px;
  left: 0;
  right: 0;
}

.seller > div {
  width: 88%;
  margin: 10px auto;
  background-color: rgb(252, 252, 252);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}

.seller h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 5px 0px;
}

.seller p {
  display: inline-block;
  color: rgb(78, 78, 78);
  margin: 3px 0px;
}
.address {
  position: relative;
}
.address .call {
  position: absolute;
  right: 20px;
  top: 15px;
}
.address .call img {
  display: inline-block;
  width: 24px;
  height: 24px;
}
.address .qualifications {
  text-align: center;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid rgb(117, 117, 117);
  color: rgb(78, 78, 78);
  padding: 3px 7px;
  font-size: 12px;
  height: 20px;
  border-radius: 13px;
  line-height: 20px;
}
.seller .report {
  text-align: center;
  font-size: 13px;
}
</style>